<template>
    <div> 
    购物车
    <el-table :data="getlist" style="width: 100%">
      <el-table-column prop="sname" label="名称"  />
      <el-table-column prop="address" label="描述"  />
    </el-table>
    </div>
</template>


<script setup>
import { ref,onMounted } from 'vue';
import axios from "axios"

let getlist = ref([])

const get=()=>{
    axios.get("http://127.0.0.1:8000/goods/shop/")
    .then(res=>{
        getlist.value=res.data
    })
}
onMounted(() => {
    get()
})
</script>


<style scoped> 

</style>